package com.circus.trace.vo;

/**
 * 
 * @author kerbores@gmail.com
 *
 */
public enum InstallPermission {
	/**
	 * ++++++++++++++++++++++访问控制++++++++++++++++++++++++++++++++
	 */

	/**
	 * 用户管理
	 */
	USER_LIST("user.list", "用户管理"),
	/**
	 * 
	 */
	USER_ADD("user.add", "用户添加"),
	/**
	 * 
	 */
	USER_DETAIL("user.detail", "用户详情"),
	/**
	 * 
	 */
	USER_ROLE("user.role", "用户设置角色"),
	/**
	 * 
	 */
	USER_GRANT("user.grant", "用户设置权限"),
	/**
	 * 
	 */
	USER_EDIT("user.edit", "用户编辑"),
	/**
	 * 
	 */
	USER_DELETE("user.delete", "用户删除"),
	/**
	 * 角色管理
	 */
	ROLE_LIST("role.list", "角色管理"),
	/**
	 * 
	 */
	ROLE_ADD("role.add", "角色添加"),
	/**
	 * 
	 */
	ROLE_GRANT("role.grant", "角色设置权限"),
	/**
	 * 
	 */
	ROLE_EDIT("role.edit", "角色编辑"),
	/**
	 * 
	 */
	ROLE_DELETE("role.delete", "角色删除"),
	
	/**
	 * 权限管理
	 */
	PERMISSION_LIST("permission.list", "权限管理"),
	/**
	 * 权限添加
	 */
	PERMISSION_ADD("permission.add", "权限添加"),
	/**
	 * 权限编辑
	 */
	PERMISSION_EDIT("permission.edit", "编辑权限"),
	/**
	 * 权限删除
	 */
	PERMISSION_DELETE("permission.delete", "删除权限"),
	/**
	 * ++++++++++++++++++++++访问控制++++++++++++++++++++++++++++++++
	 */

	
	AREA_LIST("area.list", "产区管理"),
	/**
	 */
	AREA_ADD("area.add", "产区添加"),
	/**
	 */
	AREA_EDIT("area.edit", "编辑产区"),
	/**
	 */
	AREA_DELETE("area.delete", "删除产区"),
	
	MANOR_LIST("manor.list", "庄园管理"),
	/**
	 */
	MANOR_ADD("manor.add", "庄园添加"),
	/**
	 */
	MANOR_EDIT("manor.edit", "编辑庄园"),
	/**
	 */
	MANOR_DELETE("manor.delete", "删除庄园"),
	
	TRANSPORT_LIST("transport.list", "进出口管理"),
	/**
	 */
	TRANSPORT_ADD("transport.add", "进出口添加"),
	/**
	 */
	TRANSPORT_EDIT("transport.edit", "编辑进出口"),
	/**
	 */
	TRANSPORT_DELETE("transport.delete", "删除进出口"),
	
	STORAGE_LIST("storage.list", "仓储管理"),
	/**
	 */
	STORAGE_ADD("storage.add", "仓储添加"),
	/**
	 */
	STORAGE_EDIT("storage.edit", "编辑仓储"),
	/**
	 */
	STORAGE_DELETE("storage.delete", "删除仓储"),
	
	MATERIAL_LIST("material.list", "原料管理"),
	/**
	 */
	MATERIAL_ADD("material.add", "原料添加"),
	/**
	 */
	MATERIAL_EDIT("material.edit", "编辑原料"),
	/**
	 */
	MATERIAL_DELETE("material.delete", "删除原料"),
	
	PRODUCT_LIST("product.list", "产品管理"),
	/**
	 */
	PRODUCT_ADD("product.add", "产品添加"),
	/**
	 */
	PRODUCT_EDIT("product.edit", "编辑产品"),
	/**
	 */
	PRODUCT_DELETE("product.delete", "删除产品"),
	;

	private String name;

	private String description;

	/**
	 * @param name
	 * @param description
	 */
	private InstallPermission(String name, String description) {
		this.name = name;
		this.description = description;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

}
